import request from '@/utils/request'

// 查询首页新闻列表
export function listNews(data) {
  return request({
    url: '/system/news/list',
    method: 'post',
    data: data
  })
}

// 新增首页新闻
export function addNews(data) {
  return request({
    url: '/system/news/insert',
    method: 'post',
    data: data
  })
}

// 修改首页新闻
export function updateNews(data) {
  return request({
    url: '/system/news/update',
    method: 'post',
    data: data
  })
}

// 删除首页新闻
export function delNews(data) {
  return request({
    url: '/system/news/batchDelete',
    method: 'post',
    data: data
  })
}
